/******************************************************************************
 * (c) 2011 Komersi Software                                                  *
 * www.komersisoftware.com                                                    *
 *                                                                            *
 * This file is part of Tadah                                                 *
 * Licensed under GNU General Public License v2.0                             *
 * Check LICENSE.TXT for more information                                     *
 ******************************************************************************/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "ddl.h"

ddl_column_t *ddl_column_from_name(ddl_column_t *list, char *name)
{
   ddl_column_t *cur = list;
   while (cur != NULL)
   {
      if (strcmp(cur->name, name) == 0)
         return cur;
         
      cur = cur->next;
   }
   
   return NULL;
}
